
#ifndef STAR_H
#define STAR_H

#include <cstdlib>
#include "vec3f.h"

class Star {

	public:
		
		Star() {
			vLoc = scaleVec( randVec(), 1400 );

			size = (rand()%2) + 1;

			diffuse = new float[4];
			diffuse[0] = 1.0;
			diffuse[1] = 0.9 + 0.1*(rand()%100)*0.01;
			diffuse[2] = (rand()%100)*0.01;
			diffuse[3] = 0.2 + 0.8*(rand()%100)*0.01;
		}

		const int getSize() { return size; }
		const vec3f* getLoc() { return &vLoc; }
		const float* getDiffuse() { return diffuse; }

	private:
		vec3f vLoc;
		float* diffuse;
		int size;

};

#endif
